/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2204 - For6
 * <p>Powered by webrx On 2022-09-05 11:32:24
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class For6 {
    public static void main(String[] args) {
        int s = 33;
        int sp = s;
        for (int i = 1; i <= s; i += 2) {
            //String str = " ".repeat(sp--) +  "*".repeat(i);
            //System.out.println(str);
            --sp;
            for (int m = 0; m < sp; m++) {
                System.out.print(" ");
            }

            for (int j = 1; j <= i; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
        for (int i = s-2; i >=1; i -= 2) {
            ++sp;
            for (int m = 0; m < sp; m++) {
                System.out.print(" ");
            }

            for (int j = 1; j <= i; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
